package cn.tedu.straw.api.user.dto;

import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
public class StudentRegisterDTO implements Serializable {

    @NotNull(message = "注册失败！必须提交邀请码才允许注册！")
    private String inviteCode;
    @Size(min = 2, max = 8, message = "注册失败！昵称必须是2-8个字符！")
    private String nickName;
    @NotNull(message = "注册失败！必须提交手机号码才允许注册！")
    private String phone;
    @NotNull(message = "注册失败！必须提交密码才允许注册！")
    private String password;

}
